import request from '/@/utils/request';
enum AttendanceGroupApi {
  Add = '/api/AttendanceGroup/add',
  Delete = '/api/AttendanceGroup/delete',
  Update = '/api/AttendanceGroup/edit',
  Page = '/api/AttendanceGroup/page',
  List='/api/AttendanceGroup/list',
}

/**
 * 增加
 * @param params 
 * @returns 
 */
export const addAttendanceGroup = (params?: any) =>
	request({
		url: AttendanceGroupApi.Add,
		method: 'post',
		data: params,
	});

/**
 * 删除
 * @param params 
 * @returns 
 */
export const deleteAttendanceGroup = (params?: any) => request({
	url: AttendanceGroupApi.Delete,
	method: 'post',
	data: params,
});

/**
 * 编辑
 * @param params 
 * @returns 
 */
export const updateAttendanceGroup = (params?: any) => request({
	url: AttendanceGroupApi.Update,
	method: 'post',
	data: params,
});

/**
 * 分页查询
 * @param params 
 * @returns 
 */
export const pageAttendanceGroup = (params?: any) =>request({
	url: AttendanceGroupApi.Page,
	method: 'GET',
	data: params,
});

/**
 * 获取所有
 * @param params 
 * @returns 
 */
export const ListAttendanceGroup = (params?: any) => request({
	url: AttendanceGroupApi.List,
	method: 'GET',
	data: params,
});
